// DDVideo.h: interface for the CDDVideo class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DDVIDEO_H__49EE5A01_5812_11D4_9EF2_00201857C47B__INCLUDED_)
#define AFX_DDVIDEO_H__49EE5A01_5812_11D4_9EF2_00201857C47B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\DDWnd.h"
#include "RTPVideo.h"

class CDDVideo : public CDDWnd  
{
public:
	CDDVideo();
	virtual ~CDDVideo();

	BOOL Create(CWnd* pWindow, DWORD dwWidth = 160, DWORD dwHeight = 120, WORD wBits = 24, RGBQUAD *pPaleta = NULL);
	//, RTP_VIDEO_CONFIG *pVideoConfig);
	virtual void Release();								// release all the objects
	virtual void UpdateScreen();

/*	BOOL CreaBackBuffer(DWORD dwWidth = 160, DWORD dwHeight = 120);
	BOOL CreaVideoSquare(WORD wBits = 24, WORD wNumPixels = 8, RGBQUAD *pPaleta = NULL);
	void DrawVideoSquare(int nX, int nY,LPBYTE pData);*/
	BOOL CreaBackBuffer(DWORD dwWidth = 160, DWORD dwHeight = 120, WORD wBits = 24, RGBQUAD *pPaleta = NULL);
	void DrawVideoFrame(LPBYTE pData);

protected:
	LPDIRECTDRAWSURFACE m_pDDSVideo;	// un recuadro de video
//	LPDIRECTDRAWSURFACE m_pDDSVideoSquareColors;	// un recuadro de video
	DWORD m_dwUltimo;						// milisegundos del ultimo refresco.
//	LPDIRECTDRAWSURFACE3 m_pDDSVideoBuffer3;	// un recuadro de video
};

#endif // !defined(AFX_DDVIDEO_H__49EE5A01_5812_11D4_9EF2_00201857C47B__INCLUDED_)
